package com.lagou.jenkinsdemo.mapper;

import com.lagou.jenkinsdemo.pojo.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ArticleMapper extends Mapper{

    //根据id查询对应的文章
    public Article selectArticle(Integer id);

    //根据titli查询对应的文章
    @Select("select * from t_article")
    public List<Article> selectListArticle(String title);

}
